gdk/x11: Reset all scroll valuators on enter
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Feb 2023 12:10:42 +0000 (13:10 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Feb 2023 12:13:19 +0000 (13:13 +0100)
commit824e983372d939693f7eba5c394e647a9035a0f8
tree17e61604608c23d49a902360c8820e4a2c05ef9b
parent9e5417c6c7aaf9d00e56c9986b9e3bfc8752b525
gdk/x11: Reset all scroll valuators on enter

We no longer need to make much distinction between multiple logical
devices, plus it breaks esp. with the Xwayland input device distribution.
Just iterate across all devices and reset their scroll valuators.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4160
gdk/x11/gdkdevicemanager-xi2.c